<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看规格表明细</title>
</head>
<body>
<form>
    <table border="1">
        <tr><td colspan="2"><h1>查看规格表明细</h1></td></tr>
        <tr>
            <td>规格ID</td>
            <td>
                   <span id="standardId"></span>
            </td>
        </tr>
        <tr>
            <td>商品ID</td>
            <td>
                   <span id="productId"></span>
            </td>
        </tr>
        <tr>
            <td>二级分类ID</td>
            <td>
                   <span id="twoCategoryId"></span>
            </td>
        </tr>
        <tr>
            <td>三级分类ID</td>
            <td>
                   <span id="threeCategoryId"></span>
            </td>
        </tr>
        <tr>
            <td>品牌</td>
            <td>
                   <span id="brand"></span>
            </td>
        </tr>
        <tr>
            <td>型号</td>
            <td>
                   <span id="type"></span>
            </td>
        </tr>
        <tr>
            <td>操作系统</td>
            <td>
                   <span id="operation"></span>
            </td>
        </tr>
        <tr>
            <td>颜色</td>
            <td>
                   <span id="color"></span>
            </td>
        </tr>
        <tr>
            <td>机身内存</td>
            <td>
                   <span id="memory"></span>
            </td>
        </tr>
        <tr>
            <td>入网型号</td>
            <td>
                   <span id="netModel"></span>
            </td>
        </tr>
        <tr>
            <td>购买渠道</td>
            <td>
                   <span id="buyWay"></span>
            </td>
        </tr>
        <tr>
            <td>保修时长</td>
            <td>
                   <span id="repairTime"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other1"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other2"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" id="fanhui" value="返回"/>
            </td>
        </tr>
    </table>
</form>
<script src="/js/jquery-1.12.4.js"></script>
<script>
    var param = location.href.substring(location.href.indexOf('?')+1);
    $.getJSON("/productstandard/findById.json",param,function(detail){
        $("#standardId").text(detail.standardId);
        $("#productId").text(detail.productId);
        $("#twoCategoryId").text(detail.twoCategoryId);
        $("#threeCategoryId").text(detail.threeCategoryId);
        $("#brand").text(detail.brand);
        $("#type").text(detail.type);
        $("#operation").text(detail.operation);
        $("#color").text(detail.color);
        $("#memory").text(detail.memory);
        $("#netModel").text(detail.netModel);
        $("#buyWay").text(detail.buyWay);
        $("#repairTime").text(detail.repairTime);
        $("#other1").text(detail.other1);
        $("#other2").text(detail.other2);
    });
    $("#fanhui").click(function(){
        location.href="/admin/productstandard/list.html";
    });
</script>

</body>
</html>